<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title></title>
    <style>
        div{
            height: 200px;
            width: 200px;
            background-color: red;
        }
        /* .one{
            /* 下外边距 
            margin-bottom: 20px;
        } */

        .two{
            /* 上外边距 */
            /* margin-top: 20px; */


            /* 上下左右 */
            /* margin: 30px; */


                /* 上下30  左右50 */
                margin: 30px 50px;
        }
    </style>
</head>
<body>
    <!-- 外边距控制盒子与盒子之间的距离 -->
    <div class="one">1</div>
    <div class="two">2</div>
</body>
</html>